<!-- lottery-results.hbs -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>结果报告</title>
    <!-- 引入 Bootstrap 5 样式表 -->
    <link href="/apps/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/apps/css/fontawesome-free-6.4.0-web/css/all.css">
    <script src="/apps/js/baidu-tongji-mtx.js"></script>
</head>
<body>
    <div class="container mt-4">
        <h1 class="mb-4">结果报告 {{{downloadLink}}}</h1>
        <h5 class="text-black-50">{{{subTitle}}}</h5>

        <div class="table-responsive">
            <table class="table table-striped table-bordered">
                <thead class="table-light">
                    <tr>
                        {{#each fields}}
                        <th scope="col" class="cell-content">{{this}}</th>
                        {{/each}}
                    </tr>
                </thead>
                <tbody>
                    {{#each rows}}
                    <tr data-id="{{this.cid}}" onclick="showDataModal('{{this.cid}}');">
                        {{#each this}}
                        <td class="cell-content">{{this}}</td>
                        {{/each}}
                    </tr>
                    {{/each}}
                </tbody>
            </table>
        </div>

    </div>

    <!-- 引入 Bootstrap 5 JavaScript文件（如果需要） -->
    <script src="/apps/js/jquery-3.7.1.min.js"></script>
    <script src="/apps/js/bootstrap.bundle.min.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <script src="/apps/js/wx-client-dom.js"></script>
</body>
</html>
